import http from "../utils/request"

//  所有友链
const getFriends = (data = {}) => {
  return http.request({
    url: '/friend/getFriends',
    method: 'get',
    data: data
  })
}

//  提交友链申请
const addFriend = (data) => {
  return http.request({
    url: '/friend/add',
    method: 'post',
    data: data
  })
}


export {
  getFriends,
  addFriend
}
